using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class LoadSceneCallBack
{
    /// <summary>
    /// 加载开始
    /// </summary>
    private LoadSceneStartCallBack _loadSceneStartCallBack;
    public LoadSceneStartCallBack LoadSceneStartCallBack => _loadSceneStartCallBack;

    /// <summary>
    /// 加载中
    /// </summary>
    private LoadSceneUpdateCallBack _loadSceneUpdateCallBack;
    public LoadSceneUpdateCallBack LoadSceneUpdateCallBack => _loadSceneUpdateCallBack;

    /// <summary>
    /// 加载成功
    /// </summary>
    private LoadSceneSucCallBack _loadScenesucCallBack;
    public LoadSceneSucCallBack LoadScenesucCallBack => _loadScenesucCallBack;

    /// <summary>
    /// 加载失败
    /// </summary>
    private LoadSceneFailCallBack _loadSceneFailCallBack;
    public LoadSceneFailCallBack LoadSceneFailCallBack => _loadSceneFailCallBack;


    public LoadSceneCallBack(LoadSceneStartCallBack startCallBack,LoadSceneUpdateCallBack updateCallBack,
        LoadSceneSucCallBack sucCallBack,LoadSceneFailCallBack failCallBack)
    {
        _loadSceneStartCallBack = startCallBack;
        _loadSceneUpdateCallBack = updateCallBack;
        _loadSceneFailCallBack = failCallBack;
        _loadScenesucCallBack = sucCallBack;
    }

    public LoadSceneCallBack(LoadSceneSucCallBack sucCallBack,LoadSceneFailCallBack failCallBack)
    {
        _loadScenesucCallBack = sucCallBack;
        _loadSceneFailCallBack = failCallBack;
    }
}
